package com.modouyu.novel.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.modouyu.novel.dao.NovelChapterDao;
import com.modouyu.novel.entity.NovelChapterEntity;
import com.modouyu.novel.service.NovelChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/5/7.
 */
@Service
public class NovelChapterServiceImpl extends ServiceImpl<NovelChapterDao, NovelChapterEntity> implements NovelChapterService {

    @Autowired
    private NovelChapterDao novelChapterDao;

    @Override
    public NovelChapterEntity selectPreChapter(NovelChapterEntity chapterEntity) {

        return novelChapterDao.selectPreChapter(chapterEntity);
    }
    @Override
    public NovelChapterEntity selectNextChapter(NovelChapterEntity chapterEntity) {
        return novelChapterDao.selectNextChapter(chapterEntity);
    }

}
